﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Usr.Repository.Entities
{
    /// <summary>
    /// 健康自检试题
    /// </summary>
    [Table("usr_HealthExam"), Comment("健康自检试题")]
    public class HealthExam : EfEntity
    {
        /// <summary>
        /// 分类
        /// 1：入门级问答
        /// 2：专业问答
        /// </summary>
        [Comment("分类 1：入门级问答 2：专业问答")]
        public int Classify { get; set; }

        /// <summary>
        /// 题目
        /// </summary>
        [Comment("题目"), MaxLength(500)]
        public string Title { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        [Comment("图标"),MaxLength(500)]
        public string? Ico { get; set; }

        /// <summary>
        /// 文本说明
        /// </summary>
        [Comment("文本说明"),MaxLength(500)]
        public string? TextExplain { get; set; }

        /// <summary>
        /// 图片说明
        /// </summary>
        [Comment("图片说明"), MaxLength(500)]
        public string? ImgExplain { get; set; }

        /// <summary>
        /// 类型
        /// 1：填空题
        /// 2：单选题
        /// 3：多选题
        /// 4：决策题
        /// </summary>
        [Comment("类型 1：填空题 2：单选题 3：多选题 4：决策题")]
        public int Type { get; set; }

        /// <summary>
        /// 基础类型
        /// 1：年龄
        /// 2：性别
        /// 3：体重
        /// 4：身高
        /// </summary>
        [Comment("基础类型 1：年龄 2：性别 3：体重 4：身高")]
        public int? BaseType { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Comment("排序")]
        public int? Sort { get; set; }

        /// <summary>
        /// 多选时最高扣分指标
        /// </summary>
        [Comment("多选时最高扣分指标")]
        public int? TallestDeduct { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Comment("创建时间")]
        public DateTime CreationTime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [Comment("修改时间")]
        public DateTime? EditTime { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [Comment("是否删除")]
        public bool IsDelete { get; set; } = false;
    }
}
